# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-weather
pkgver=2.0.0
pkgrel=0
pkgdesc="Default weather app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-weather"
# armhf blocked by qml-asteroid
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	mapplauncherd
	nemo-qml-plugin-configuration
	"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-weather/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
689890839110b96850d600ed1edfa501ceddbb4b892bc151cb6460274ca5255b0d96032c61a6440c063f87307942da5f0b68b0d7e04d23bb5e4df2b0af7f2598  asteroid-weather-2.0.0.tar.gz
"
